package com.czy.model;

/**
 * @author chenzy
 * @since 2024-02-21
 **/
public abstract class Field {
    public int id;
    public String name;
    public short length;
    public short width;
    public short height;
    /*产量*/
    public int yield;

    /*待收割的产出*/
    public int balance;

    public int getYield() {
        return yield;
    }

    public Field setYield(int yield) {
        this.yield = yield;
        return this;
    }

    public int getBalance() {
        return balance;
    }

    public Field setBalance(int balance) {
        this.balance = balance;
        return this;
    }

    public int getId() {
        return id;
    }

    public Field setId(int id) {
        this.id = id;
        return this;
    }

    public String getName() {
        return name;
    }

    public Field setName(String name) {
        this.name = name;
        return this;
    }

    public short getLength() {
        return length;
    }

    public Field setLength(short length) {
        this.length = length;
        return this;
    }

    public short getWidth() {
        return width;
    }

    public Field setWidth(short width) {
        this.width = width;
        return this;
    }

    public short getHeight() {
        return height;
    }

    public Field setHeight(short height) {
        this.height = height;
        return this;
    }
}
